import request from '@/utils/request'

// 查询ChildWeight列表
export function listChildWeight(childId,query) {
return request({
url: '/api/v1/childweightList/'+childId,
method: 'get',
params: query
})
}

// 查询ChildWeight详细
export function getChildWeight (weightId) {
return request({
url: '/api/v1/childweight/' + weightId,
method: 'get'
})
}


// 新增ChildWeight
export function addChildWeight(data) {
return request({
url: '/api/v1/childweight',
method: 'post',
data: data
})
}

// 修改ChildWeight
export function updateChildWeight(data) {
return request({
url: '/api/v1/childweight',
method: 'put',
data: data
})
}

// 删除ChildWeight
export function delChildWeight(weightId) {
return request({
url: '/api/v1/childweight/' + weightId,
method: 'delete'
})
}

//charts/height/
export function listChildWeightCharts(childId) {
    return request({
        url: '/api/v1/charts/weight/' + childId,
        method: 'get',
    })
}